package com.project.plus.service.impl;/**
 * Created by Administrator on 2020/9/27.
 */

import com.project.plus.entity.Departments;
import com.project.plus.mapper.DepartmentsMapper;
import com.project.plus.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName DeptServiceImpl
 * @Description TODO
 * @Author Invoker
 * @Date 2020/9/27 10:13
 * @Version 1.0
 */
@Service("deptService")
public class DeptServiceImpl implements DeptService{
    
    @Autowired
    private DepartmentsMapper departmentsMapper;
    
    
    @Override
    public List<Departments> getAllDept() {
        return departmentsMapper.getAllDept();
    }

    @Override
    public Departments getByNoDept(String deptNo) {
        return departmentsMapper.getByNoDept(deptNo);
    }
}
